package com.bbdjt.weixin.model;


import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;


import java.util.Date;

@Alias("role")
@Table(name = "role")
public class Role implements Serializable  {
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	//主键							
	@Column(name = "id")
	private Integer id;
	//名称							
	@Column(name = "name")
	private String name;
	//创建时间							
	@Column(name = "create_date")
	private Date createDate;
	//描述							
	@Column(name = "describes")
	private String describes;
	//权限json							
	@Column(name = "limits")
	private String limits;
	@Column(name = "o1")
	private String o1;
	@Column(name = "o2")
	private String o2;
	@Column(name = "o3")
	private String o3;
	@Column(name = "o4")
	private String o4;
	@Column(name = "o5")
	private String o5;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}
	public String getLimits() {
		return limits;
	}

	public void setLimits(String limits) {
		this.limits = limits;
	}
	public String getO1() {
		return o1;
	}

	public void setO1(String o1) {
		this.o1 = o1;
	}
	public String getO2() {
		return o2;
	}

	public void setO2(String o2) {
		this.o2 = o2;
	}
	public String getO3() {
		return o3;
	}

	public void setO3(String o3) {
		this.o3 = o3;
	}
	public String getO4() {
		return o4;
	}

	public void setO4(String o4) {
		this.o4 = o4;
	}
	public String getO5() {
		return o5;
	}

	public void setO5(String o5) {
		this.o5 = o5;
	}

}